package com.shenda.device.handler.handlers;

import org.springframework.stereotype.Component;

import com.shenda.device.message.RespMsg;
import com.shenda.device.message.RespMsg_UploadStart;

/**
 * 停止上传数据
 * 
 * @author lifeng
 */
@Component
public class UploadStartHandler extends AbstractHandler {

	@Override
	protected boolean supportCmds(RespMsg resp) {
		return resp instanceof RespMsg_UploadStart;
	}

	/**
	 * 上传数据处理
	 */
	@Override
	protected void doInnerHandle(RespMsg resp) {
		resp.getDevice().uploadStart((RespMsg_UploadStart) resp);
	}
}
